package com.gxa.ehome.pojo;


//spring中通过静态方法来注入bean的操作
public class SysUserFactory {

    public static SysUser getSysUser(){
        SysUser sysUser=new SysUser();
        sysUser.setId(1);
        sysUser.setName("admin");
        return sysUser;
    }


    public  SysUser getSysUser2(){
        SysUser sysUser=new SysUser();
        sysUser.setId(2);
        sysUser.setName("李四喜");
        return sysUser;
    }
}
